/*
 * ErrorMessage.java
 *
 * Copyright©2012 JMAS corporation. All rights reserved.
 */
package jp.co.jmas.jmasvideo.dao;

public class ErrorMessage {
	private String id;

	private String message;

	public ErrorMessage() {
		// do nothing
	}

	public ErrorMessage(String id, String message) {
		this.id = id;
		this.message = message;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public static ErrorMessage create(String message) {
		ErrorMessage errorMessage = new ErrorMessage();
		errorMessage.message = message;
		return errorMessage;
	}

	public static ErrorMessage create(String id, String message) {
		ErrorMessage errorMessage = new ErrorMessage();
		errorMessage.id = id;
		errorMessage.message = message;
		return errorMessage;
	}
}
